<template>
  <el-table :data="list" v-loading="listLoading" element-loading-text="给我一点时间" border fit highlight-current-row
      style="width: 100%" @row-click="handleShow" max-height="580">
    <el-table-column min-width="220px" align="center" label="订单编号">
      <template slot-scope="scope">
        <span>{{scope.row.order_num}}</span>
      </template>
    </el-table-column>
    <el-table-column min-width="180px" align="center" label="保障人姓名">
      <template slot-scope="scope">
        <span>{{scope.row.username}}</span>
      </template>
    </el-table-column>
    <el-table-column min-width="200px" align="center" label="计划名称">
      <template slot-scope="scope">
        <span>{{scope.row.product_name}}</span>
      </template>
    </el-table-column>
    <el-table-column align="center" label="审核时间" min-width="220px" class-name="small-padding">
      <template slot-scope="scope">
        <span>{{scope.row.check_time | parseTime('{y}-{m}-{d} {h}:{i}:{s}')}}</span>
      </template>
    </el-table-column>
    <el-table-column class-name="status-col" label="处理结果" min-width="150px">
      <template slot-scope="scope">
        <span>{{scope.row.check_result_text}}</span>
      </template>
    </el-table-column>
  </el-table>
</template>

<script>

export default {
  props: {
    list: Array,
    listLoading: Boolean,
    type: String
  },
  data() {
    return {
    }
  },
  created() {
    // this.getList()
  },
  methods: {
    handleShow(row) {
      this.$router.push({ path: '/order/historyDetail/' + row.oid + '/' + this.type })
    }
  }
}
</script>
